<!--  -->
<template>
  <a-modal
    @cancel="modalClose"
    :visible="visible"
    width="22.5rem"
    dialogClass="check-modal"
    :footer="null"
    :centered="true"
    :closable="false"
  >
    <div class="check-wrap">
      <img class="lex-img" src="~assets/reverse/lexicon-icon.png" alt="" />
      <p>请先选择专题</p>
      <a-button block type="primary" shape="round" @click="okClickHandle"
        >选择专题</a-button
      >
    </div>
  </a-modal>
</template>

<script>
import { Modal } from "ant-design-vue";
export default {
  name: "choseModal",
  components: {
    AModal: Modal,
  },
  data() {
    return {};
  },
  props: {
    visible: {
      type: Boolean,
      required: true,
    },
    ok: {
      type: Function,
    },
  },
  computed: {},
  watch: {},
  methods: {
    modalClose() {
      this.$emit("update:visible", false);
    },
    okClickHandle() {
      this.$emit("ok");
    },
  },
  created() {},
  mounted() {},
};
</script>
<style lang="less" scoped>
/* @import url(); 引入公共css类 */

.check-wrap {
  text-align: center;

  .lex-img {
    width: 137px;
    height: 110px;
  }
  & > p {
    margin: 34px 0;
  }
}
</style>
